The Cobra Web service host must be configured and deployed on the machine where Cobra is installed.
Since the Cobra Web service runs through the network, it is required to allow the machine that hosts the Web service to listen to the applications from remote machines. By default, the host listens to port 8116 using the Transmission Control Protocol (TCP).
To configure and deploy the Cobra Web service host, complete the following steps:
-
Locate the Cobra.WebService.Host.exe.config file that resides on the Cobra folder and open it using a text editor (such as Notepad).
-
Find the two lines containing
<add baseAddress="http://localhost:8116/CobraWebService" /> and
<add baseAddress="https://localhost:8122/CobraWebService" /> and replace
localhost on both lines with the name of the machine.
For example:
<add baseAddress="http:// COBWSHOST:8116/CobraWebService" />
<add baseAddress="https:// COBWSHOST:8122/CobraWebService" />
-
Save and close the configuration file.
-
Click
. Right-click the Command Prompt and select
Run as administrator.
-
On the Administrator Command Prompt window, enter the following lines:
"<Cobra Folder Path>\Cobra.WebService.Host.exe"-install
The command deploys the host into the Windows services.
-
Close the Administrator Command Prompt window.
-
Check whether the host is running in the Windows Services. Browse the address from the configuration file in an internet browser.
If the host is running, the page displays that you have created a service and provides details on how to test the service. If a page is not displayed, the host is either not configured correctly or is not running in the Windows services.